package com.feinno.urcs.group.log;

import com.feinno.superpojo.type.EnumInteger;

/**
 * Created by wuhao on 15-10-14.
 */
public enum MessageKindType implements EnumInteger {

    UNKNOWN(0), PAGEMODE(1), LARGEMODE(2), FT(3), SESSIONMODE(4);

    int value;

    private MessageKindType(int value) {
        this.value = value;
    }

    public int intValue() {
        return value;
    }
    public static MessageKindType parse(int value) {
        switch (value) {
            case 0:
                return UNKNOWN;
            case 1:
                return PAGEMODE;
            case 2:
                return LARGEMODE;
            case 3:
                return FT;
            case 4:
                return SESSIONMODE;
            default:
                return null;
        }
    }
}
